package cn.kgc.springbootdemo.job;

import cn.kgc.springbootdemo.exception.HandleException;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <h3>springbootdemo</h3>
 * <p>用户定时任务</p>
 *
 * @author : DongZeJian
 * @date : 2021-03-27 11:58
 **/
@Slf4j
@Component
public class UserJob {

    @XxlJob("judgeActiveUser")
    public ReturnT<String> judgeActiveUser(String src) {
        log.info("定时任务判断活跃用户开始执行");
        //throw new HandleException(500,"我就是我报错的我");
        return ReturnT.SUCCESS;
    }
}
